<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div>
<form>
	<table class="tabl">
		<tr>
		<td>ID</td>
		<td> Surname&Name </td>
		<td> Date of birth</td>
		<td> Sex </td>
		<td> DateOfLastVisit</td>				
		</tr>
		<c:forEach var="user" items="${users}">
			<tr>		
			 	<td>
				<c:out value="${user.id}" /></td> 
				
				
				<c:url var="stUrl" value="ShowFullUser">
				<c:param name="id" value="${user.id}"></c:param>
				</c:url>
				<td>
				<a href="${stUrl}">	 
					<c:out value="${user.surname}" />
			 		<c:out value="${user.name}" /></a>
			 	</td>
				<td><c:out value="${user.dateOfBirth}" />
				</td>					
				<td>
				<c:if test="${user.sex>0}"> <c:out value="men"/> </c:if>
				<c:if test="${user.sex<1}"> <c:out value="women"/> </c:if>
				</td>
				
				<td><c:out value="${user.dateOfLastVisit}"></c:out>	</td>	
			</tr>
		</c:forEach>
</table>
</form>
</div>